package yf.mall.dao;

import yf.mall.entity.LotteryGoodsEntity;
import yf.mall.vo.LotteryGoodsVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import java.util.List;
/**
 * 中奖奖品Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 11:18:45 CST 2020
 */
@Mapper
public interface LotteryGoodsDao extends BaseDao<LotteryGoodsEntity> {

    List<LotteryGoodsVo> findVo(LotteryGoodsVo vo);

    LotteryGoodsVo getVo(Long id);


    List<LotteryGoodsEntity> findByActId(Long actId, Integer status);

    LotteryGoodsEntity findMaxGoods(Long actId);

    LotteryGoodsEntity findMinGoods(Long actId);

    List<LotteryGoodsEntity> findByActIdAndStatus(Long actId, Integer status);
}
